package com.mohan.config;

import com.mohan.bean.Person;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.Scope;

//@Configuration
public class MyConfig3 {

    @Scope("thread")
    @Bean("person")
    public Person person() {
        System.out.println("给容器中添加咱们的person对象...");
        return new Person("莫大人",22);
    }
}
